package com.example.ujsfish.model.ship;


import com.example.ujsfish.model.MyPoint;

import java.util.ArrayList;
import java.util.List;

/**
 * 用于存放临时的轨迹路线用于轨迹规划的刷新显示
 */
public class CurrentPlanPath {


    public List<MyPoint> planPathList = new ArrayList<>();
    public List<MyPoint> boundaryList = new ArrayList<>();
    public List obstacleList = new ArrayList<>();

    public List getObstacleList() {
        return obstacleList;
    }

    public void setObstacleList(List obstacleList) {
        this.obstacleList = obstacleList;
    }

    public List<MyPoint> getBoundaryList() {
        return boundaryList;
    }

    public void setBoundaryList(ArrayList<MyPoint> boundaryList) {
        this.boundaryList = boundaryList;
    }

    private volatile static CurrentPlanPath instance2 = null;

    private CurrentPlanPath() {
    }


    public List<MyPoint> getPlanPathList() {
        return planPathList;
    }

    public void setPlanPathList(ArrayList<MyPoint> planPathList) {
        this.planPathList = planPathList;
    }

    public static CurrentPlanPath getInstance() {
        if (instance2 == null) {
            synchronized (CurrentPlanPath.class) {
                instance2 = new CurrentPlanPath();
            }
        }
        return instance2;
    }


}
